package com.lindroy.androidplayer.ui.adapter

import androidx.lifecycle.LifecycleOwner
import com.lindroy.androidplayer.base.adapter.BasePagingAdapter
import com.lindroy.androidplayer.databinding.HomeArticleItemBinding
import com.lindroy.androidplayer.logic.model.ArticleResp
import com.lindroy.androidplayer.viewmodels.ArticleItemViewModel

/**
 * @author Lin
 * @date 2022/1/17
 * @function
 */
class ArticleAdapter(lifecycleOwner: LifecycleOwner) : BasePagingAdapter<ArticleItemViewModel, HomeArticleItemBinding>(lifecycleOwner) {

    override fun HomeArticleItemBinding.onBindViewHolder(item: ArticleItemViewModel?, position: Int) {
        vm = item
    }
}